<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>caculator.html</title>

		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="this is my page">
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">

		<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
		<script type="text/javascript" src="caculator.js"></script>
		<script type="text/javascript">	
			var textField=document.getElementsByName("textField");
			document.write(textField[0]);
			function clear(){
				alert("clear");
			}
		</script>
	</head>


	<body>
		<form name="myForm">
			<table>
				<tr>
					<td colspan="3">
						<input name="textField" type="text" id="textField" value="abc"></input>
					</td>
					<td>
						<input type="button" value="=" onClick="clear();"></input>
					</td>
				</tr>
				<tr>
					<td>
						<input type="button" value="0" onClick="doInput(this)"></input>
					</td>
					<td>
						<input type="button" value="1" onClick="doInput(this)"></input>
					</td>
					<td>
						<input type="button" value="2" onClick="doInput(this)"></input>
					</td>
					<td>
						<input type="button" value="+" onClick="doOperate(this)"></input>
					</td>
				</tr>
				<tr>
					<td>
						<input type="button" value="3" onClick="doInput(this)"></input>
					</td>
					<td>
						<input type="button" value="4" onClick="doInput(this)"></input>
					</td>
					<td>
						<input type="button" value="5" onClick="doInput(this)"></input>
					</td>
					<td>
						<input type="button" value="-" onClick="doOperate(this)"></input>
					</td>
				</tr>
				<tr>
					<td>
						<input type="button" value="6" onClick="doInput(this)"></input>
					</td>
					<td>
						<input type="button" value="7" onClick="doInput(this)"></input>
					</td>
					<td>
						<input type="button" value="8" onClick="doInput(this)"></input>
					</td>
					<td>
						<input type="button" value="*" onClick="doOperate(this)"></input>
					</td>
				</tr>
				<tr>
					<td colspan="3" align="center">
						<input type="button" value="9" onClick="doInput(this)"></input>
					</td>

					<td>
						<input type="button" value="/" onClick="doOperate(this)"></input>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
